import request from '@/utils/request'

// 查询BOM明细列表
export function listQualityItemDetail(query) {
  return request({
    url: '/quality/productQualityItem/list',
    method: 'get',
    params: query
  })
}

// 查询BOM明细详细
export function getQualityItemDetail(id) {
  return request({
    url: '/quality/productQualityItem/' + id,
    method: 'get'
  })
}

// 新增BOM明细
export function addQualityItemDetail(data) {
  return request({
    url: '/quality/productQualityItem',
    method: 'post',
    data: data
  })
}

// 修改BOM明细
export function updateQualityItemDetail(data) {
  return request({
    url: '/quality/productQualityItem',
    method: 'put',
    data: data
  })
}

// 删除BOM明细
export function delQualityItemDetail(id) {
  return request({
    url: '/quality/productQualityItem/' + id,
    method: 'delete'
  })
}

// 查询质检项列表
export function listQualityItem(query) {
  return request({
    url: '/quality/qualityItem/list',
    method: 'get',
    params: query
  })
}
